<?php
/**
 * Created by PhpStorm.
 * User: a4041
 * Date: 2018/6/13
 * Time: 13:46
 */

namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class WalletLog extends Model
{
    protected $table = 'wallet_logs';
    protected $guarded = ['id', 'created_at', 'updated_at'];
    protected $hidden=['deleted_at'];

    public function user(){
        return $this->belongsTo('\App\Models\User','user_id','id');
    }

//    public function order(){
//        return $this->hasOne('\App\Models\Order','order_id','id');
//    }
}